OBJS = parametrization.o spline.o curve.o polynomial.o spline_tester.o functions.o
eOBJS = setp_polynomial.o
MATH = -lm
CFLAGS = -ggdb 

all: tp3 test

tp3: main.cpp $(OBJS)
	g++ -o tp3 $(CFLAGS) $(MATH) main.cpp $(OBJS)
	
test: test.cpp $(OBJS)
	g++ -o test $(CFLAGS) $(MATH) test.cpp $(OBJS)
	
%.o: %.cpp %.h
	g++ -c $< $(MATH)
	
clean:
	rm -f tp3
	rm -f test
	rm -f *.o
